package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.ThreeFactorAuthRequest;
import com.chinaums.fsp.sdk.pgt.params.ThreeFactorAuthResponse;
/**
 * 三要素认证
 * @author hty
 *
 */
public class DraftThreeFactorAuthTest extends BaseRequest{
	public void testDraftThreeFactorAuthRequest() throws Exception {

		PgtRequestFactory rf = FACTORY.factory();

		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.DRAFT_TRAANS_THREE_FACTOR_AUTH.getTransCode());

		ThreeFactorAuthRequest data = ThreeFactorAuthRequest.newBuilder()
				.setCustomerName("黄腾勇")
				.setMobile("18559655830")
				.setCertId("350583199401298311").build();
		rf.transType(TransType.DRAFT_TRAANS_THREE_FACTOR_AUTH.getTransCode())
				.responseClass(ThreeFactorAuthResponse.class).data(data);
		ResponseDataWrapper rdw = rf.post();
		this.printToDraft(rdw);
	}

}
